<?php

namespace common\models\hospital;

use Yii;

/**
 * This is the model class for table "{{%patient_crontab_log}}".
 *
 * @property int $id
 * @property string|null $patient_card_id 诊疗号
 * @property string|null $origin_outpatient_type 原就诊类型
 * @property string|null $new_outpatient_type 新的就诊类型
 * @property string|null $remark 备注
 * @property int $created_at 添加时间
 * @property int $updated_at 更新时间
 */
class CrontabLog extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%patient_crontab_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['created_at', 'updated_at'], 'integer'],
            [['patient_card_id'], 'string', 'max' => 50],
            [['origin_outpatient_type', 'new_outpatient_type', 'remark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'patient_card_id' => 'Patient Card ID',
            'origin_outpatient_type' => 'Origin Outpatient Type',
            'new_outpatient_type' => 'New Outpatient Type',
            'remark' => 'Remark',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
